#
# Be sure to run `pod lib lint LZBaseDeviceSDK.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'LZBaseDeviceSDK'
  s.version          = '0.1.1'
  s.summary          = 'LZBaseDeviceSDK for ios.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = 'LZBaseDeviceSDK是基于获取设备基础参数的SDK'

  s.homepage         = 'https://gitee.com/lin_zi_ios/LZBaseDeviceSDK'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'panfei mao' => '843158788@qq.com' }
  s.source           = { :git => 'https://gitee.com/lin_zi_ios/LZBaseDeviceSDK.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '8.0'

  s.source_files = 'LZBaseDeviceSDK/LZCategory'
  s.source_files = 'LZBaseDeviceSDK/Tongdun'
  s.source_files = 'LZBaseDeviceSDK/LZManager'
  s.libraries     = 'resolv' #表示依赖的系统类库，比如libz.dylib等(iOS lib库省略lib前缀)
  
  #LZCategory
  s.subspec 'LZCategory' do |category|
      category.public_header_files = 'LZBaseDeviceSDK/LZCategory/LZCategory.h'
      category.source_files = 'LZBaseDeviceSDK/LZCategory/LZCategory.h'
      category.frameworks = 'Foundation','UIKit','SystemConfiguration'
      #三级
      category.subspec 'NSDictionary' do |dict|
          dict.public_header_files = 'LZBaseDeviceSDK/LZCategory/NSDictionary/*.h'
          dict.source_files = 'LZBaseDeviceSDK/LZCategory/NSDictionary/*.{h,m}'
      end
      category.subspec 'UIDevice' do |device|
          device.public_header_files = 'LZBaseDeviceSDK/LZCategory/UIDevice/*.h'
          device.source_files = 'LZBaseDeviceSDK/LZCategory/UIDevice/*.{h,m}'
      end
      category.subspec 'UIViewController' do |vc|
          vc.public_header_files = 'LZBaseDeviceSDK/LZCategory/UIViewController/*.h'
          vc.source_files = 'LZBaseDeviceSDK/LZCategory/UIViewController/*.{h,m}'
      end
   end
  
  #Tongdun
  s.subspec 'Tongdun' do |moxie|
      moxie.public_header_files = 'LZBaseDeviceSDK/Tongdun/FMDeviceManager.h'
      moxie.source_files = 'LZBaseDeviceSDK/Tongdun/*'
  end
  
  #LZManager
  s.subspec 'LZManager' do |manager|
      manager.public_header_files = 'LZBaseDeviceSDK/LZManager/*.h'
      manager.source_files = 'LZBaseDeviceSDK/LZManager/*.{h,m}'
      manager.dependency 'LZBaseDeviceSDK/LZCategory'
      manager.dependency 'LZBaseDeviceSDK/Tongdun'
      manager.frameworks = 'Foundation','CoreLocation'
      
      manager.vendored_libraries = 'LZBaseDeviceSDK/Tongdun/libFMDeviceManager.a'
  end
  
  # s.resource_bundles = {
  #   'LZBaseDeviceSDK' => ['LZBaseDeviceSDK/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
end
